Post

Replies

Boosts

Views

Activity

Getting the Locale of the System in iOS
Hi, I use the elbow code to toggle between English and Arabic locale, but the alert message always shows en_QA which is English I guess even when locale changed to Arabic ? why is that ? struct arview: View { @Environment(\.locale) private var locale @State private var showingAlert = false @State private var isLTR: Bool = false @State private var txtValue = "" var body: some View { VStack{ Text("Note Title") TextField("Place Holder", text: $txtValue) Button("Change Locale") { isLTR.toggle() } Button("Show Alert") { showingAlert = true } .alert("Current Locale: \(locale.identifier)", isPresented: $showingAlert) { Button("OK", role: .cancel) { } } } .padding() .environment (\.locale, isLTR ? Locale.init(identifier: "en" ) : Locale.init(identifier: "ar" )) } }
0
0
386
Jan ’24
Views Autopsy in SwiftUI
Hi, How to see a views Autopsy in SwiftUI specially when views stacks together and over each other, like to see what area they occupy how they overlap understand why white space is here and there ? Maybe there's a tool or plug in ? I remember layers in UIKit, had such tool and feature in Xcode. Kindest Regards
0
0
400
Feb ’24
Apps Naming
Hi App names on App Store is it like domain names ? For example when an App named things I can’t publish an App with same name ? And if yes how to check about available names and reserve them ? kindest Regards
Replies
0
Boosts
0
Views
510
Activity
Jan ’22
Font Installing
Hi can my App now install fonts system wide in iOS and iPadOS ? Is there any helpful links ? Kindest Regards
Topic: Design SubTopic: General Tags:
Replies
0
Boosts
0
Views
956
Activity
Jan ’22
Xcode Compatibility Error Message
Hi Im trying to run my Xcode App on physical iPad but getting the attached screen message, this happened recently before few months I didn't get it. My iPad is 9.7" Pro with iPadOS 15.6. Mac is NBP 2015 with macOS 11.5.1 and Xcode Version 13.2.1. is there a fix ?
Replies
0
Boosts
0
Views
410
Activity
Aug ’22
Command - Click on Canvas
Hi, In Xcode 15 is command click on an item in the preview canvas feature removed ? it doesn't work for me ? Kindest Regards
Replies
0
Boosts
0
Views
492
Activity
Sep ’23
Using Data or View in NavigationStack
Hi, Is it recommended to use data and SwiftUI controls inside the NavigationStack or to use views as before ? I think views is easier to maintain or Im missing something ? cause I hear that the new way is to use data directly ? Kindest Regards
Replies
0
Boosts
0
Views
284
Activity
Dec ’23
Are Fitness features exists in HealthKit ?
Hi, The fitness features such as distance moved, steps, calories burned is it in HealthKit or in a different kit ? couldn't find any API in HealthKit ? Also for example how can Apple Watch distinguish that this amount of steps was walked and not moved by a slow car or a scoter for example ? Kindest Regards
Replies
0
Boosts
0
Views
598
Activity
Dec ’23
Apple Car Kit & carOS
Hi, The Car Kit Apple introduced recently is it a separate OS or what ? I mean how can I develop and deploy a whole new designed Car Info System and dashboards same as the designs Apple published last year ? Kindest Regards
Replies
0
Boosts
0
Views
775
Activity
Dec ’23
Xcode Local Source Control Merging Branches
Hi, When I use local Xcode source control and not connect to a cloud git I don't have the ability to merge branches ? if possible can you show hw please ? Also other features such as push, pull, cherry Pick isn't supported ? Kindest Regards
Replies
0
Boosts
0
Views
422
Activity
Dec ’23
Catching the keyboard language changing in iOS and getting the language
Hi, How to catch the keyboard language changing in iOS when use select a different language from keyboard, and how to know what language he selected and if its right to left ? in SwiftUI App. Kindest Regards
Replies
0
Boosts
0
Views
426
Activity
Jan ’24
Getting the Locale of the System in iOS
Hi, I use the elbow code to toggle between English and Arabic locale, but the alert message always shows en_QA which is English I guess even when locale changed to Arabic ? why is that ? struct arview: View { @Environment(\.locale) private var locale @State private var showingAlert = false @State private var isLTR: Bool = false @State private var txtValue = "" var body: some View { VStack{ Text("Note Title") TextField("Place Holder", text: $txtValue) Button("Change Locale") { isLTR.toggle() } Button("Show Alert") { showingAlert = true } .alert("Current Locale: \(locale.identifier)", isPresented: $showingAlert) { Button("OK", role: .cancel) { } } } .padding() .environment (\.locale, isLTR ? Locale.init(identifier: "en" ) : Locale.init(identifier: "ar" )) } }
Replies
0
Boosts
0
Views
386
Activity
Jan ’24
Top Area of View Stop Responding With IgnoreSafeArea
Hi I have a view I used it in the details section of SpliView and I want it to occupy the whole view, thing is it top area stopped responding and receiving taps ? is it a bug ? Kindest Regards
Replies
0
Boosts
0
Views
411
Activity
Feb ’24
Views Autopsy in SwiftUI
Hi, How to see a views Autopsy in SwiftUI specially when views stacks together and over each other, like to see what area they occupy how they overlap understand why white space is here and there ? Maybe there's a tool or plug in ? I remember layers in UIKit, had such tool and feature in Xcode. Kindest Regards
Replies
0
Boosts
0
Views
400
Activity
Feb ’24
Auto hiding details panel
Hi, By default when selecting an item from a list in details panel it doesn't close how to make it close or hide by default ? Kindest Regards
Replies
0
Boosts
0
Views
326
Activity
May ’24
Prevent debugging window from opening
Hi, Every time I run my App in Xcode the below debugging window opens and I need to close it every time as I don't need it, how to disable this behavior in Xcode ? I want to open it manually when needed. Kindest Regards
Replies
0
Boosts
1
Views
308
Activity
Jun ’24
SwiftData Model Container for Many Classes
Hi, Most of SwiftData tutorials use one SwiftData Class model though defining it is modelContainer is straightforward, what if I have say 10 model classes how to define them in the modelContainer ? Kind Regards
Replies
0
Boosts
0
Views
416
Activity
Jun ’24